using System;
using System.Collections.Generic;
using System.Text;
using Kassandra.Core;
using NUnit.Framework;

namespace Kassandra.Tests
{
    [TestFixture]
    public class CustomWordWrapTests
    {
        [Test]
        public void Calculate_ShouldWrapLines()
        {
            ICustomWordWrapper wrapper = new CustomWordWrapper(14);
            IList<string> lines = wrapper.WrapText("This is some long test data that should wrap");
            Assert.IsTrue(lines.Count > 0, "No records returned");
            Assert.AreEqual("This is some ", lines[0]);
            Assert.AreEqual("long test data ", lines[1]);
            Assert.AreEqual("that should ", lines[2]);
            Assert.AreEqual("wrap ", lines[3]);
        }
    }
}